package com.bj58.ecdata.calc.dbservice.dao.model;

import java.io.Serializable;

import com.bj58.ecdata.calc.dbservice.dao.annotation.HourlyMultiDimensionAccValueMap;
import com.bj58.ecdata.calc.dbservice.dao.annotation.MultiDimensionAccValueMap;
import com.bj58.ecdata.calc.dbservice.dao.annotation.PrimaryDimension;
import com.bj58.ecdata.calc.dbservice.dao.annotation.TableName;

/**
 * @author lichao
 *
 */
@TableName("display")
public class DisplayModel implements Serializable {
	private static final long serialVersionUID = 1L;
	@PrimaryDimension
	private Long time;
	protected Integer platform;
	protected String bussline;
	@MultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	@HourlyMultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	private Long pv;
	@MultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	@HourlyMultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	private Long ad;
	@MultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	@HourlyMultiDimensionAccValueMap(dimensions = { "platform", "bussline" })
	private Long adNum;

	/**
	 * @return the time
	 */
	public Long getTime() {
		return time;
	}

	/**
	 * @param time
	 *            the time to set
	 */
	public void setTime(Long time) {
		this.time = time;
	}

	/**
	 * @return the platform
	 */
	public Integer getPlatform() {
		return platform;
	}

	/**
	 * @param platform
	 *            the platform to set
	 */
	public void setPlatform(Integer platform) {
		this.platform = platform;
	}

	/**
	 * @return the bussline
	 */
	public String getBussline() {
		return bussline;
	}

	/**
	 * @param bussline
	 *            the bussline to set
	 */
	public void setBussline(String bussline) {
		this.bussline = bussline;
	}

	/**
	 * @return the pv
	 */
	public Long getPv() {
		return pv;
	}

	/**
	 * @param pv
	 *            the pv to set
	 */
	public void setPv(Long pv) {
		this.pv = pv;
	}

	/**
	 * @return the ad
	 */
	public Long getAd() {
		return ad;
	}

	/**
	 * @param ad
	 *            the ad to set
	 */
	public void setAd(Long ad) {
		this.ad = ad;
	}

	/**
	 * @return the adNum
	 */
	public Long getAdNum() {
		return adNum;
	}

	/**
	 * @param adNum
	 *            the adNum to set
	 */
	public void setAdNum(Long adNum) {
		this.adNum = adNum;
	}

	@Override
	public String toString() {
		return String.format("DisplayModel [time=%s, platform=%s, bussline=%s, pv=%s, ad=%s, adNum=%s]", time, platform, bussline, pv, ad, adNum);
	}

}
